package ycyc.Games.gomoku.model;

import java.util.List;

import ycyc.Games.gomoku.core.BasePlayer;


public class HumanPlayer extends BasePlayer {  
  
    @Override  
    public Point run(List<Point> enemyPoints,Point p) {  
        getMyPoints().add(p);  
        allFreePoints.remove(p);  
        return p;
    } 
    @Override  
    public boolean runBack(int n) { 
    	try {
    		for (int i=0;i<n;i++) {
    			getMyPoints().remove(getMyPoints().size()-1);  
    			allFreePoints.remove(allFreePoints.size()-1);  
			}
    		return true;
		} catch (Exception e) {
			System.out.println("error");
			return false;
		}
    } 
    
}  